package com.cym.util;

import java.text.SimpleDateFormat;
import java.util.Date;

public class DateUtil {
    public static Date StringToData(String dataTime) {
        String format = "yyyy-MM-dd";
        SimpleDateFormat sdf = new SimpleDateFormat(format);
        Date date = null;
        try {
            date = (Date) sdf.parse(dataTime);
        } catch (Exception e) {
            e.printStackTrace();
        }
        return date;
    }
}
